import Vue from 'vue'
import Router from 'vue-router'

import Home from "../components/Home.vue"
import detail from "../components/detail/detail.vue"
import collect from "../components/collect/collect.vue"
import MainMenu from "../components/MainMenu/MainMenu.vue"

Vue.use(Router)

const routes = [
  { path: '/Home', component: Home,children:[
    {path:'/MainMenu',component:MainMenu},

  ]},
  {path:'/detail',component:detail},
  {path:'/collect',component:collect}
]


export default new Router({
  routes
})


